import axios from "axios";

export default {
    get(url) {
        return new Promise(function (resolve, reject) {
            axios.get(url).then((res) => {
                resolve(res)
            }).catch(error => {
                reject(error)
            })
        })
    },

    post(url, data) {
        return new Promise(function (resolve, reject) {
            axios.post(url, data).then((res) => {
                resolve(res)
            }).catch(error => {
                reject(error)
            })
        })
    }
}
